﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dem2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个四位数");
            string str = Console.ReadLine();
            int num = int.Parse(str);
            Console.WriteLine("千位数："+(num/1000));
            Console.WriteLine("百位数：" + (num /100% 10));
            Console.WriteLine("十位数：" + (num /10%10));
            Console.WriteLine("个位数：" + (num  % 10));
        }
    }
}
